<include file="./Tpl/Home/top.html"/>
<include file="./Tpl/Home/header.html" />
<!--交易页面的子导航区-->
<include file="./Tpl/Home/user_nav.html" />

<div class="container">
<!--全站交易记录-->
<div class="trade-part trade-part-hd mt20">
  <div class="trade-hd">
        <h5><i class="icon_condition"></i>手机认证</h5>
  </div>
  <div class="md">
	<div class="my-grid" id="order-grid">
	    <form action="{$path}/User/chkMoble" method="post" onsubmit="return checkForm(this)">
			<table class="items table table-striped table-bordered table-condensed chkreal">
			<tbody>
			<tr><td>手机号码：</td><td><input type="text" name="moble" id="moble"  placeholder="请输入手机号码"/><input type="button" value="发送验证码" class="btn" id="sendbtn"/></td></tr>
			<tr><td>验证码：</td><td><input type="text" name="code" placeholder="请输入验证码"/></td></tr>
			<tr><td colspan=2><input type="submit" class="btn" value="确定"/></td></tr>
			</tbody>
			</table>
		</form>
	</div>
  </div>
</div>
</div>
<!--尾部-->
<include file="./Tpl/Home/footer.html" />
<!-- footer -->

<div class="modal hide fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"></div>

<!--[if IE 6]><script src="/js/ie-6.js"></script><![endif]-->
<script type="text/javascript" src="/Public/Home/js/jquery.SuperSlide.js"></script>
<script type="text/javascript" src="/Public/Home/js/slideTxtBox.js"></script>
<script type="text/javascript" src="/Public/Home/js/bootbox.js"></script>
<script type="text/javascript" src="/Public/Home/js/box.js"></script>
<script type="text/javascript" src="/Public/Home/js/lang.js"></script>
<script type="text/javascript" src="/Public/Home/js/responseHandler.js"></script>
<script type="text/javascript" src="/Public/Home/js/jquery.yiigridview.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
jQuery(function($) {
jQuery('body').popover({'selector':'a[rel=popover]'});
jQuery('#order-grid').yiiGridView({'ajaxUpdate':['order-grid'],'ajaxVar':'ajax','pagerClass':'pagination','loadingClass':'grid-view-loading','filterClass':'filters','tableClass':'items table table-striped table-bordered table-condensed','selectableRows':1,'enableHistory':false,'updateSelector':'{page}, {sort}','filterSelector':'{filter}','pageVar':'CurrencyTransaction_page'});
});
/*]]>*/

function checkForm(obj){
    if(obj.xm.value == ""){
	    alert("请输入姓名！");
		obj.xm.focus();
		return false;
	}else if(obj.card.value == ""){
	    alert("请输入身份证号！");
		obj.card.focus();
		return false;
	}
}

$(document).ready(function(){
    $('#sendbtn').click(function(){
		$('#sendbtn').attr('disabled','disabled');
		var moble = $('#moble').val();
		$.post('/?s=Home/Call/run',{phone:moble},function(flag){
			if(flag==1){
				alert('语音已开启，请注意查收验证码！');
			}else{
				alert('验证失败！请重新验证。');   
			}
		});
	    var i=60;
		var si = setInterval(function(){
		    $('#sendbtn').val('（'+i+'）秒后可再次获取');
			
			if(i<=0) {
				clearInterval(si);
				$('#sendbtn').val('发送验证码');
				$('#sendbtn').attr('disabled',false);
			}
			i--;
		},1000);
	});
});
</script>


</body></html>